package com.yunhe.java.pro10;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/8/3 0003.
 */
public class Yichang {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        int[] a = {1, 2, 3, 0, 4, 7, 8};
//        System.out.println("请输入整数：");
//        try{
//            int b=sc.nextInt();
//            System.out.println(a[b]);
//        }catch(Exception e){
//            System.out.println("输入错误");
//        }
//        System.out.println("结束");



        System.out.println("请输入三角形第一条边长度a：");
        int a=sc.nextInt();
        System.out.println("请输入三角形第一条边长度b：");
        int b=sc.nextInt();
        System.out.println("请输入三角形第一条边长度c：");
        int c=sc.nextInt();
        try{
            Sanjiaoxing sanjiaoxing=new Sanjiaoxing();
            sanjiaoxing.sanjiao(a,b,c);
            System.out.println(a+","+b+","+c+","+"能构成三角形");
        }catch(Exception e){
            System.out.println(a+","+b+","+c+","+"不能构成三角形");
        }
    }
}
